'use strict';

module.exports = app => {
  // 内置缓存
  app.cache = {
    wx_id: '',
    wx_skey: '',
    sendMailTime: 0,
  };
  app.on('error', err => {
    // report error
    console.log(err, this, '------');
  });
  app.on('request', ctx => {
  });
  app.on('response', ctx => {
    // ctx.starttime is set by framework
    const usedTime = Date.now() - ctx.starttime;
  });
};
